package com.study.pojo.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Test {
    @NotNull(message = "奖品名不能为空")
    private String a;
    @Range(max = 10, min = 1, message = "分数范围在1-10内")
    private Integer b;
}
